﻿@{
    ViewBag.Title = "牛腩视频播放管理系统";
}
@model PagedList<Niunan.VideoSys.Model.Video>
@using Webdiyer.WebControls.Mvc
<style>
    .tc{text-align:center;}
    .niunan_ul {list-style:none; margin: 15px auto;}
    .niunan_ul li {float:left; width:220px;  border: 1px solid #ccc; margin:10px; padding:8px;} 
    .niunan_ul li:hover{border:1px solid red;}
    .niunan_ul li h4{font-size:16px; font-weight:bold;}
    .niunan_ul li h4 a{color:black;}
</style>
 <ul class="niunan_ul">
     @foreach(var item in Model){
     <li>
         <div class="tc">
             <a href="/Video/Show/@item.id" target="_blank">
                 <img style="width:200px;height:100px;" src="@item.img" />
             </a>
         </div>
             <h4><a href="/Video/Show/@item.id" target="_blank">@item.title</a></h4>
             <div>@item.body</div>
         
     </li>
    }
 </ul>
<div style="clear:both;"></div>

<div class='pagin'>
    <div style="float:left; margin:0 20px; line-height:36px;">
        共@(Model.TotalItemCount)条数据，每页显示@(Model.PageSize)条，第@(Model.CurrentPageIndex)页/共@(Model.TotalPageCount)页
    </div>
    @Html.Pager(Model, new PagerOptions { PageIndexParameterName = "pageindex", CurrentPagerItemTemplate = "<span class=\"current\">{0}</span>", DisabledPagerItemTemplate = "<span class=\"disabled\">{0}</span>", Id = "badoopager", AlwaysShowFirstLastPageNumber = true })
</div>